package com.itWaiLong.AppException;


/**
 * 自定义异常处理类
 */
public class GlobalExceptionHandler extends RuntimeException {
    private Integer code;
    private String message;

    public GlobalExceptionHandler(){
    }

    public GlobalExceptionHandler(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public GlobalExceptionHandler(AppException appException) {
        this.code = appException.getCode();
        this.message = appException.getMessage();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
}
